package com.zh.yqbj.constant;

public class CaptchaConstant {
    /**
     * 验证码图片宽度
     */
    public static int CAPTCHA_WIDTH = 100;
    /**
     * 验证码图片高度
     */
    public static int CAPTCHA_height = 50;
    /**
     * 验证码位数
     */
    public static int CAPTCHA_CODE_COUNT = 4;
    /**
     * 验证码干扰度
     */
    public static int CAPTCHA_THICKNESS = 2;
    /**
     * 验证码类型 普通验证码
     */
    public static String CAPTCHA_CODE_KEY = "yqbj-zh:captcha_code_key:";
    /**
     * 验证码类型 手机号验证码
     */
    public static String CAPTCHA_PHONE_KEY = "yqbj-zh:captcha_phone_key:";
    /**
     * 验证码类型 邮箱验证码
     */
    public static String CAPTCHA_EMAIL_KEY = "yqbj-zh:captcha_email_key:";
    /**
     * base64 图片前缀
     */
    public static String BASE_PREFIX = "data:image/*;base64,";
    /**
     * 有效期
     */
    public static int CAPTCHA_EXPIRE_TIME = 60*5; // 5分钟过期

}
